package com.insurance.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.insurance.common.utils.PageUtils;
import com.insurance.entity.PartnerPermissionEntity;

import java.util.List;
import java.util.Map;

/**
 * 合作方权限
 *
 * @date 2021-02-27 15:51:21
 */
public interface PartnerPermissionService extends IService<PartnerPermissionEntity> {

    PageUtils queryPage(Map<String, Object> params, QueryWrapper<PartnerPermissionEntity> queryWrapper);

    QueryWrapper<PartnerPermissionEntity> getQueryWrapper(PartnerPermissionEntity partnerPermissionEntity);

    /**
     * 通过权限主键集合查询权限字符串集合
     *
     * @param permissionIdList 权限主键集合
     * @return
     */
    List<String> getPermissionByIds(List<String> permissionIdList);

    List<PartnerPermissionEntity> queryList(PartnerPermissionEntity partnerPermissionEntity);

    boolean removeBatch(List<String> permissionIdList, PartnerPermissionEntity partnerPermissionEntity);
}

